<?php
namespace App;
use Session;
use Illuminate\Database\Eloquent\Model;
use DB;
class Cate_Home extends Model
{
	public $timestamps = false;
	public $table='cate';
	public function lists($id){
		return DB::table('cate')->where('is_show',0)->where('level',$id)->orderBy('cate_sort','desc')->get(['cate_id','cate_name','parent_id','level']);
	}
}
